<template>
  
  <div>
 <ul>
   <li v-for="(item,index) in arr" :key="index">{{item}}</li>
   <button @click="btn">走一走</button>
 </ul>
  </div>
</template>

<script>
export default {
data(){
  return{
    arr:["肖艳梅","傻子","程序猿"]
  }
},
methods:{
  btn(){
    this.arr.push(this.arr[0])
    this.arr.shift()
  }
}
}
</script>

<style>

</style>